package org.dong.test;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.dong.Tool.ApplicationUtil;
import org.dong.mapper.DoctorMapper;
import org.dong.pojo.AdminUser;
import org.dong.pojo.Report;
import org.dong.pojo.Target;
import org.dong.service.DoctorService;
import org.dong.service.ReportService;
import org.dong.service.TargetService;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public class Main {


    public static void main(String[] args) {

       //先查询体检订单是否存在
//        ReportService reportService = (ReportService) ApplicationUtil.getContext().getBean("reportService");
//        final Report report = reportService.getReportInfo(8, null, null);
//        System.out.println(report);
//        if(report != null) {
//            //查询对应的订单细项
//            TargetService targetService = (TargetService) ApplicationUtil.getContext().getBean("targetService");
//            List<Target> details = targetService.getDetailList(report.getId());
//            System.out.println(details);
//        }
//        ReportService reportService = (ReportService) ApplicationUtil.getContext().getBean("reportService");
//        final List<Report> reportList =reportService.getReportList(0, 2, null, null, null, null);
//        System.out.println(reportList);
//        final List<Report> reportList = ApplicationUtil.getContext().getBean(ReportService.class).getReportList(0, 2, null, null, null, null);
//        System.out.println(reportList);



    }

}
